package com.spsoft.vatoutinv.service.vmsfulloutinvoice.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spsoft.vatoutinv.entity.vmsfulloutinvoice.VmsFullOutInvoiceTdywItem;
import com.spsoft.vatoutinv.mapper.VmsFullOutInvoiceTdywItemMapper;
import com.spsoft.vatoutinv.service.vmsfulloutinvoice.VmsFullOutInvoiceTdywItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数电发票特定业务附加信息表 服务实现类
 * </p>
 *
 * @author chenxudong
 * @since 2024-02-04
 */
@Service
public class VmsFullOutInvoiceTdywItemServiceImpl extends ServiceImpl<VmsFullOutInvoiceTdywItemMapper, VmsFullOutInvoiceTdywItem> implements VmsFullOutInvoiceTdywItemService {

    @Override
    public List<VmsFullOutInvoiceTdywItem> getInvoiceTdywItemByTdywId(Long tdywId) {
        LambdaQueryWrapper<VmsFullOutInvoiceTdywItem> query = new LambdaQueryWrapper<>();
        query.eq(VmsFullOutInvoiceTdywItem::getTdywId, tdywId);
        query.orderByAsc(VmsFullOutInvoiceTdywItem::getId);
        return list(query);
    }
}
